package it.controllocredito.backend.phone.calllog;

import it.controllocredito.backend.persistence.bean.RegistroChiamate;
import java.util.ArrayList;

import android.content.ContentResolver;
import android.content.Context;

public class ManagerCallLogHandler
{
	@SuppressWarnings ("unused")
	private static final String	log_class_name	= "ManagerCallLogHandler";
	
	private ContentResolver		contentResolver;
	
	public ManagerCallLogHandler(Context context)
	{
		super();
		
		this.contentResolver = context.getContentResolver();
	}
	
	public ArrayList<RegistroChiamate> aggiornaRegistroChiamate(String whereSql)
	{
		CallLogHandler callLogHandler = new CallLogHandler(contentResolver,
				whereSql);
		
		return callLogHandler.eseguiSelectRegistroChiamate();
	}
	
	public ArrayList<RegistroChiamate> aggiornaRegistroChiamate(String whereSql, boolean[] filtroTipoChiamata)
	{
		CallLogHandler callLogHandler = new CallLogHandler(contentResolver,
				whereSql, filtroTipoChiamata);
		
		return callLogHandler.eseguiSelectRegistroChiamate();
	}		
	
	
	
	
}
